import { http } from '@/utils/http'

export const getGoodsByIdAPI = (id) => {
  return http({
    method: 'GET',
    url: '/goods',
    data: { id },
  })
}

export const getGoodsByIdAPI2 = (id) => {
  return http({
    method: 'POST',
    url: '/api/product/productDetail',
    data: { product_id: id },
  })
}
